<?php
namespace Client\Model;
use Think\Model\AdvModel;

class PublishModel extends AdvModel{
	protected $_validate=array(
		array('time','require','日期不能为空',0,'regex'),
		array('uid','require','用户id不能为空',0,'regex'),
		array('content','require','发布内容不能为空',0,'regex'),
		array('image','require','图片地址获取失败',0,'regex'),
	);
	protected $_auto 	=array(
		//array('ctime','time',1,'function'),
		array('browse_times','0'),
		array('discuss_times','0'),
	);
}